<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); 
Yii::app()->clientScript->registerScript('admin', "
$(document).ready(function(){
		$('#Custom_sale_id').append('<option value>'+'请选择'+'</option>');
		$('#Custom_sale_id option[value] ').attr('selected',true);
	})
")

?>

	<div class="row">
		<?php echo $form->label($model,'custom_surname'); ?>
		<?php echo $form->textField($model,'custom_surname',array('size'=>60,'maxlength'=>255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'custom_name'); ?>
		<?php echo $form->textField($model,'custom_name',array('size'=>60,'maxlength'=>255)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'equipment_number'); ?>
		<?php echo $form->textField($model,'equipment_number',array('size'=>60,'maxlength'=>255)); ?>
	</div>
	<div class="row">
		<?php echo $form->label($model,'sale_id'); ?>
		<?php echo $form->dropDownList($model,'sale_id',Custom::model()->getsaleId()); ?>
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton(Yii::t('base', 'search')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->